<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page import="java.sql.*,pkg.Engine" %>
<jsp:useBean id="Engine" scope="session" class="pkg.Engine"/>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IOSR_team11</title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
/*
String login = (String) session.getAttribute( "user" );
String password = (String) session.getAttribute( "user" );*/
String login = request.getParameter( "username" );
String password = request.getParameter( "password" );
if (login == null) {
	out.println("<FORM METHOD=POST ACTION=\"test.jsp\">");
	out.println("<TABLE>");
	out.println("<TR>");
	out.println("<TD width = 100>Login:</TD>");
	out.println("<TD><INPUT TYPE=TEXT NAME=username SIZE=20></TD>");
	out.println("</TR>");
	out.println("<TR>");
	out.println("<TD>Pasword:</TD>");
	out.println("<TD><INPUT TYPE=PASSWORD NAME=password SIZE=20></TD>");
	out.println("</TR>");
	out.println("</TABLE>");
	out.println("<P align=\"center\"><INPUT TYPE=submit value=\"Sign in\"></P>");
	out.println("</FORM>");
	out.println("<p align=\"left\"><a href=\"http://www.google.com\">Exit</a></p>");
}
else {
	out.println("<p align=\"center\">Wprowadzono nast dane</p>");
	out.println("<p align=\"center\">login:"+login+"</p>");
	out.println("<p align=\"center\">password:"+password+"</p>");
	out.println("<p align=\"center\"><a href=\"test.jsp\">Return</a></p>");
	out.println(Engine.printDate());
	out.println(Engine.printInt());
}

%>

</body>

</html>

